<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>重庆大学硕士研究生服务系统</title>
<?php $this->load->view('includes/ga_head'); ?>  
</head>
<!--[if lt IE 7 ]> <body class="ie ie6"> <![endif]-->
<!--[if IE 7 ]> <body class="ie ie7 "> <![endif]-->
<!--[if IE 8 ]> <body class="ie ie8 "> <![endif]-->
<!--[if IE 9 ]> <body class="ie ie9 "> <![endif]-->
<!--[if (gt IE 9)|!(IE)]><!--> 
<body class=""> 
<!--<![endif]-->
<?php $this->load->view('includes/ga_navbar'); ?>  
<?php $this->load->view('includes/ga_sidebar'); ?>  
<div class="content">
    <div class="header">
        <h1 class="page-title">推免详情</h1>
    </div>
    <ul class="breadcrumb">
        <li><a href="index.html">Home</a> <span class="divider">/</span></li>
        <li class="active">推免申请信息详情</li>
    </ul>
    <div class="container-fluid">
        <div class="row-fluid">
<?php $this->load->view('includes/ga_message'); ?>  
<?php echo form_open(current_url());?>  	
<div class="btn-toolbar">
  <input type="submit" value="审核通过" id="pass_button" name="pass_button_name" class="btn btn-primary" 
<?php 
//根据实际情况进行选择，目前按照专业学院招生老师只能审核研招办老师已审的内容，
//研招办老师既可以审核自己的，也可以帮助专业学院老师进行审核；
if($this->flexi_auth->get_user_group_id()==2&&$applyDetailsInfo['apply_status']==3){
  echo '';
}else if($this->flexi_auth->get_user_group_id()==3&&$applyDetailsInfo['apply_status']==2){
  echo '';
}else{
  echo 'disabled';
}
?>
/><i class="icon-save"></i>
  <div class="btn-group">
  </div>
</div>
<div class="well">
    <ul class="nav nav-tabs">
      <li class="active"><a href="#home" data-toggle="tab">报名号：<?php echo $applyDetailsInfo['apply_series']; ?></a></li>
    </ul>
     <div id="myTabContent" class="tab-content">
      <div class="tab-pane active in" id="home">
        <table class="table table-striped table-hover ">
        <tr><td>审批状态:</td>
            <td><?php foreach ($stuApplyStatus as $sas)
            {
                if ($sas[0] == $applyDetailsInfo['apply_status'])
                {
                   echo $sas[1];
                }	            
            }?>
            </td>
            <td>退回原因:</td>
            <td><?php echo $applyDetailsInfo['apply_feedback']; ?></td></tr>
        <tr><td>信息标识码:</td>
            <td><?php echo $applyDetailsInfo['identifying_code']; ?></td>
            <td>国家网络报名号:</td>
            <td><?php echo $applyDetailsInfo['statue_reg_num']; ?></td></tr>
        <tr><td>申请类型:</td>
            <td><?php foreach ($stuApplyType as $sat)
            {
                if ($sat[0] == $applyDetailsInfo['apply_type'])
                {
				   echo $sat[1];
				}		            
            }?>
            </td>
            <td>推免资格:</td>
            <td><?php foreach ($stuApplyRom as $sar)
            {
                if ($sar[0] == $applyDetailsInfo['recom_qualify'])
                {
				   echo $sar[1];
				}			            
			}?></td></tr>
        <tr><td>真实姓名:</td>
            <td><?php echo $applyDetailsInfo['stu_real_name']; ?></td>
            <td>性别:</td>
            <td><?php foreach ($stuGender as $sgd)
            {
                if ($sgd[0] == $applyDetailsInfo['stu_gender'])
                {
				   echo $sgd[1];
				}           
			}?></td></tr>
        <tr><td>民族:</td>
            <td><?php foreach ($stuNation as $snt)
            {
                if ($snt[0] == $applyDetailsInfo['stu_nation'])
                {
				   echo $snt[1];
				}            
			}?></td>
            <td>政治面貌:</td>
            <td><?php foreach ($stuPolitionStatus as $sps)
                {
                    if ($sps[0] == $applyDetailsInfo['politics_status'])
                    {
					   echo $sps[1];
					}            
				}?></td></tr>
			<?php if ( $applyDetailsInfo['apply_type']==3 ) {?>
        <tr><td>考生编号:</td>
            <td><?php echo $applyDetailsInfo['stu_exam_num']; ?></td>
            <td>总分:</td>
            <td><?php echo $applyDetailsInfo['stu_total_points']; ?></td></tr>
        <tr><td>政治分数:</td>
            <td><?php echo $applyDetailsInfo['stu_political']; ?></td>
            <td>外语分数:</td>
            <td><?php echo $applyDetailsInfo['stu_foreign']; ?></td></tr>
        <tr><td>专业课一:</td>
            <td><?php echo $applyDetailsInfo['stu_bus_one']; ?></td>
            <td>专业课二:</td>
            <td><?php echo $applyDetailsInfo['stu_bus_two']; ?></td></tr>
        <tr><td>一志愿报考专业代码:</td>
            <td><?php echo $applyDetailsInfo['stu_init_major']; ?></td>
            <td></td>
            <td></td></tr>
			<?php }?>
        <tr><td>证件类型:</td>
            <td><?php foreach ($stuCertifyType as $scf)
                {
                    if ($scf[0] == $applyDetailsInfo['certificate_type'])
                    {
					   echo $scf[1];
					}            
				}?></td>
            <td>证件号码:</td>
            <td><?php echo $applyDetailsInfo['certificate_num']; ?></td></tr>
        <tr><td>毕业学校:</td>
            <td><?php echo $applyDetailsInfo['ungra_school']; ?></td>
            <td>本科毕业专业:</td>
            <td><?php echo $applyDetailsInfo['ungra_major']; ?></td></tr>
        <tr><td>本科学号:</td>
            <td><?php echo $applyDetailsInfo['ungra_num']; ?></td>
            <td>本科毕业年份:</td>
            <td><?php echo substr($applyDetailsInfo['gra_date'],0,4); ?></td></tr>
        <tr><td>考生来源:</td>
            <td><?php foreach ($stuFrom as $sf){
									if ($sf[0] == $applyDetailsInfo['stu_from']){
									   echo $sf[1];
									}            
								}
			    ?></td>
            <td>平均成绩:</td>
            <td><?php echo $applyDetailsInfo['stu_avg_score']; ?></td></tr>
        <tr><td>外语四级成绩:</td>
            <td><?php echo $applyDetailsInfo['stu_cet4_score']; ?></td>
            <td>外语六级成绩:</td>
            <td><?php echo $applyDetailsInfo['stu_cet6_score']; ?></td></tr>
        <tr><td>班级排名:</td>
            <td><?php echo $applyDetailsInfo['stu_class_rank']; ?></td>
            <td>专业排名:</td>
            <td><?php echo $applyDetailsInfo['stu_major_rank']; ?></td></tr>
        <tr><td>联系电话:</td>
            <td><?php echo $applyDetailsInfo['stu_telephone']; ?></td>
            <td>移动电话:</td>
            <td><?php echo $applyDetailsInfo['stu_cellphone']; ?></td></tr>
        <tr><td>报考院系:</td>
            <td><?php echo $applyDetailsInfo['college_name']; ?></td>
            <td>报考专业:</td>
            <td><?php echo $applyDetailsInfo['major_name']; ?></td></tr>
        <tr><td>报考导师姓名:</td>
            <td><?php echo $applyDetailsInfo['tutor_name']; ?></td>
            <td></td>
            <td></td></tr>
        <tr><td>通信地址及邮编:</td>
            <td><?php echo $applyDetailsInfo['stu_address']; ?></td>
            <td></td>
            <td></td></tr>
        <tr><td>报考原因:</td>
            <td><?php echo $applyDetailsInfo['stu_reg_reason']; ?></td>
            <td></td>
            <td></td></tr>
        <tr><td>奖惩情况:</td>
            <td><?php echo $applyDetailsInfo['stu_description']; ?></td>
            <td></td>
            <td></td></tr>
        <tr><td>学习工作经历:</td>
            <td><?php echo $applyDetailsInfo['stu_experience']; ?></td>
            <td></td>
            <td></td></tr>
        </table>
      </div>
  </div>           
</div>
<div class="row-fluid">
<input type="text" class="span4 search-query" id="back_reason" placeholder="退回原因" name="back_reason_text"/>
<input type="submit" id="back_button" name="back_button_name" class="btn" value="退回" disabled/>
</div>
	  <?php echo form_close();?>
<?php $this->load->view('includes/ga_footer'); ?>  
        </div>
    </div>
</div>
<?php $this->load->view('includes/ga_scripts'); ?>
<script>
$(function() {
	//通过登陆用户的角色和审批表的状态来设置审批button的样式
  //对输入框的文字进行动态判断  
  //IE
  if(window.attachEvent){
      $("#back_reason").get(0).attachEvent("onpropertychange",function (o){
         //if(o.srcElement.value) $( "#back_button" ).button( "option", "disabled", false );
          //else $( "#back_button" ).button( "option", "disabled", true );
         if(o.srcElement.value) $( "#back_button" )[0].disabled=false;
         else $( "#back_button" )[0].disabled=true;
      });
  //非IE
  }else{
      $("#back_reason").get(0).addEventListener("input",function(o){
        //if(o.srcElement.value) $( "#back_button" ).button( "option", "disabled", false );
        //else $( "#back_button" ).button( "option", "disabled", true );
        if(o.srcElement.value) $( "#back_button" )[0].disabled=false;
        else $( "#back_button" )[0].disabled=true;
      },false);
  }    
    
  //对输入框的文字进行动态判断  
  //IE
  if(window.attachEvent){
      $("input[type=text]").get(0).attachEvent("onpropertychange",function (o){
         //if(o.srcElement.value) $( "#back_button" ).button( "option", "disabled", false );
         //else $( "#back_button" ).button( "option", "disabled", true );
         if(o.srcElement.value) $( "#back_button" )[0].disabled=false;
         else $( "#back_button" )[0].disabled=true;
      });
  //非IE
  }else{
      $("input[type=text]").get(0).addEventListener("input",function(o){
        //if(o.srcElement.value) $( "#back_button" ).button( "option", "disabled", false );
        //else $( "#back_button" ).button( "option", "disabled", true );
        if(o.srcElement.value) $( "#back_button" )[0].disabled=false;
        else $( "#back_button" )[0].disabled=true;
      },false);
  }
});
</script>
</body>
</html>
